<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>部门新增或者修改</title>
    <style type="text/css">
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .form-container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0,0,0,0.1);
            width: 300px;
            text-align: center;
        }
        input[type="text"] {
            width: calc(100% - 22px);
            padding: 10px;
            margin: 10px 0;
            display: block;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        input[type="submit"] {
            display: inline-block;
            padding: 10px 20px;
            font-size: 16px;
            color: #fff;
            text-align: center;
            text-decoration: none;
            background-color: #007BFF;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
        }
        input[type="submit"]:hover {
            background-color: #0056b3;
            transform: scale(1.05); /* Slight zoom effect on hover */
        }
        input[type="submit"]:active {
            background-color: #004080;
        }
    </style>
</head>
<body>
    <form action="/product/saveOrUpdate" method="post">
        <input type="hidden" name="id" value="${product.id}">
        <input type="text" name="productName" placeholder="名称" value="${product.productName}"><br/>
        <input type="text" name="price" placeholder="价格" value="${product.price}"><br/>
        <input type="text" name="stock" placeholder="库存" value="${product.stock}"><br/>
        <input type="text" name="url" placeholder="图片路径" value="${product.url}"><br/>
        <input type="text" name="description" placeholder="描述" value="${product.description}"><br/>
        <input type="submit" value="提交">
    </form>
</body>
</html>
